﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/QLDAOL.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ProjectPage
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/project.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<%@ Register src="ProjectSupporter.ascx" tagname="supporter" tagprefix="uc1" %>
<script src="../../Scripts/jquery-1.7.js" type="text/javascript"></script>
  <script language="javascript" type="text/javascript">

      jQuery(document).ready(function () {
          // alert('123');
          $("input[name=goi]").click(function () {
              //alert("!23");
              var s = $("#noidung").val();
              $.post("/Chat/insert", { description: s }, function (data) { });
              $("#noidung").attr("value", "");

          });
          $("#noidung").keypress(function (e) {
              if (e.which == 13) {
                  var s = $("#noidung").val();
                  $.post("/Chat/insert", { description: s }, function (data) { });
                  $("#noidung").attr("value", "");
              }
          });
          laynoidung();

      });
      function laynoidung() {
          $.post("/Chat/chatcontent", function (data) {
              document.getElementById('noidungchat').innerHTML = data;
          });
          setTimeout("laynoidung()", 500);
      };
        
   </script>
<div id="content" class="pjpage">
    <div class="left_content" >
        
    </div>
    <div class="main_content">
         <% Html.RenderAction("sidebar");%>
        <div class="content_page_right">
            <div class="menu">
                <div class="menu_top">
                    
                    <div class="menu_tab menu_tab_selected">
                        <%=Ajax.ActionLink(" Document", "Download", "download", new { pjid = ViewData["pj"],username="" }, new AjaxOptions { UpdateTargetId = "div_load" })%> 
                    </div>
                    <% var kt = ViewData["ispm"];
                       if ((bool)kt == true)
                       {
                         %>
                     <div class="menu_tab ">
                        <%=Ajax.ActionLink("Upload", "Uploadfile", "download", new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "div_load" })%>   </p>
                    </div>
                    <%} %>
                    <div class="menu_tab ">
                         <%= Html.ActionLink("Calendar", "Index", "Calendar")%>
                    </div>
                    <div class="menu_tab ">
                        <%= Html.ActionLink("Task", "ListTaskPage", "Task") %>
                    </div>
                </div>
                <div id="div_load" class="menu_content">
                     
                
                </div>
            </div>
            <div class="menu user">
                <div class="menu_top">
                    <div class="menu_tab">
                        Infomation
                    </div>
                </div>
                <div class="menu_content">
                    <div class="menu_user_tab">
                    <%=Ajax.ActionLink("News", "InfomationContent", new { type = 1 }, new AjaxOptions { UpdateTargetId = "Info_Content" })%>
                    </div>
                    <div class="menu_user_tab menu_user_tab_selected">
                    <%=Ajax.ActionLink("QA", "InfomationContent", new { type = 2 }, new AjaxOptions { UpdateTargetId = "Info_Content" })%>
                    </div>
                </div>
                <div id="Info_Content">
                <% Html.RenderAction("InfomationContent", new { type = 1 }); %>
                </div>
            </div>
        </div>
    </div>
    <div class="right_content" >
    </div>
    </div>
</asp:Content>

